﻿<Window x:Class="Auto_Rename.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Skywave Auto Rename" Height="357" Width="548" ResizeMode="NoResize" Icon="Rename.ico">
    <Grid>
        <GroupBox Height="121" HorizontalAlignment="Left" Margin="12,12,0,0" Name="groupBox1" VerticalAlignment="Top" Width="504">
            <GroupBox.Header>
                <RadioButton Content="Target filenames to source filenames matching" IsChecked="True" GroupName="RenameType" Name="renameType_Matching" />
            </GroupBox.Header>
            <Grid>
                <Label Content="Source:" Height="28" HorizontalAlignment="Left" Margin="6,32,0,0" Name="label1" VerticalAlignment="Top" ToolTip="e.g. Movie files used for source of renaming" />
                <Label Content="Target (to be renamed):" Height="28" HorizontalAlignment="Left" Margin="6,66,0,0" Name="label2" VerticalAlignment="Top" ToolTip="e.g. Subtitle files to be renamed" />
                <TextBox Height="23" Margin="149,34,0,0" Name="patternMovie" VerticalAlignment="Top" Text="s&lt;\d{2,}&gt;;e&lt;\d{2,}&gt;" HorizontalAlignment="Left" Width="171" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="326,34,0,0" Name="patternMovie_Dedicated" Text="mkv" VerticalAlignment="Top" Width="159" />
                <TextBox Height="23" Margin="149,68,0,0" Name="patternSubtitle" VerticalAlignment="Top" Text="s&lt;\d{2,}&gt;;e&lt;\d{2,}&gt;" HorizontalAlignment="Left" Width="171" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="326,68,0,0" Name="patternSubtitle_Dedicated" Text="srt" VerticalAlignment="Top" Width="159" />
                <Label Content="Match Pattern" Height="28" HorizontalAlignment="Left" Margin="149,6,0,0" Name="label4" VerticalAlignment="Top" ToolTip="Pattern used to match Source files to Target ones (in .net regular expression language and seperated by &quot;;&quot;)" />
                <Label Content="Dedicated Pattern" Height="28" HorizontalAlignment="Left" Margin="326,6,0,0" Name="label5" VerticalAlignment="Top" ToolTip="Pattern used to differentiate between Source files and Target files (in .net regular expression language and seperated by &quot;;&quot;)" />
            </Grid>
        </GroupBox>
        <GroupBox Height="100" HorizontalAlignment="Left" Margin="12,139,0,0" Name="groupBox2" VerticalAlignment="Top" Width="502">
            <GroupBox.Header>
                <RadioButton Content="Cleanup" Name="renameType_Cleanup" GroupName="RenameType" />
            </GroupBox.Header>
            <Grid>
                <Label Content="String(s) to remove:" Height="28" HorizontalAlignment="Left" Margin="6,4,0,0" Name="label6" ToolTip="e.g. Subtitle files to be renamed" VerticalAlignment="Top" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="149,6,0,0" Name="cleanup_ToClean" Text="facebook - ;youtube - ; - airvideo" VerticalAlignment="Top" Width="336" />
                <Label Content="(Note: Seperate different strings by ; character)" Height="28" HorizontalAlignment="Right" Margin="6,38,6,0" Name="label7" ToolTip="e.g. Subtitle files to be renamed" VerticalAlignment="Top" />
                <CheckBox Content="Case sensitive" Height="16" HorizontalAlignment="Left" Margin="6,43,0,0" Name="cleanup_CaseSensitive" VerticalAlignment="Top" />
            </Grid>
        </GroupBox>
        <Label Content="Containing Folder:" Height="28" HorizontalAlignment="Left" Margin="12,0,0,37" Name="label3" VerticalAlignment="Bottom" ToolTip="Folder path containing source and target files" />
        <TextBox Height="23" Margin="155,0,93,40" Name="folderToSearch" VerticalAlignment="Bottom" Text="" />
        <Button Content="Browse ..." Height="23" HorizontalAlignment="Right" Margin="0,0,12,40" Name="buttonBrowse" VerticalAlignment="Bottom" Width="75" Click="buttonBrowse_Click" />
        <Button Content="Rename" Margin="0,0,12,12" Name="buttonRename" HorizontalAlignment="Right" Width="75" Height="23" VerticalAlignment="Bottom" Click="buttonRename_Click" />
    </Grid>
</Window>
